package com.hoshiibuy.spu.feign.hystrix;

import com.hoshiibuy.common.rpc.Response;
import com.hoshiibuy.spu.feign.CategoryFeignService;

/**
 * 商品类目微服务FeignClient熔断器
 *
 * @author : yangcheng
 * @date : 2019/5/6 15:35
 * @mail : maiboyc@163.com
 **/
public class HystrixCategoryFeignFallback implements CategoryFeignService {

    /**
     * 根据id获取品牌
     * @param id ID
     * @return Response
     */
    @Override
    public Response getBrandById(Long id) {
        return Response.failed("查询品牌信息失败");
    }

    /**
     * 根据id获取类目
     * @param id ID
     * @return Response
     */
    @Override
    public Response getCategoryById(Long id) {
        return Response.failed("查询类目信息失败");
    }

}